﻿using Adalbertus.BudgetPlanner.Domain;
using FluentNHibernate.Mapping;

namespace Adalbertus.BudgetPlanner.Infrastructure.Mapping
{
    public class IncomeMap : ClassMap<Income>
    {
        public IncomeMap()
        {
            Id(x => x.Id);

            Map(x => x.Name);

            HasMany(x => x.Entries).Cascade.All();
        }
    }
}
